package com.bangyu.monitor.modular.system.service;

import com.bangyu.monitor.modular.system.entity.Area;
import com.bangyu.monitor.modular.system.entity.BendMapping;
import com.bangyu.monitor.modular.system.mapper.AreaMapper;
import com.bangyu.monitor.modular.system.mapper.BendMappingMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 地区service
 */
@Service
public class AreaService extends ServiceImpl<AreaMapper, Area> {

    @Resource
    private AreaMapper areaMapper;


    public List<Area> queryByParentCode(Integer parentCode){
        return areaMapper.queryByParentCode(parentCode);
    }

    public List<Area> queryProvince(){
        return areaMapper.queryProvince();
    }


}
